// 秋检秋查（常规检查）app
import apiRequest from "../common/apiRequest";

//根据用户Id获取应用图标
const autumnSelectModelList = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/selectModelList',
    method: 'post',
    data: params
  })
}

//待办列表、我完成的、作业监控（包含搜索信息）
const getAutumnInspectionTaskListInfo = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/getAutumnInspectionTaskListInfo',
    method: 'post',
    data: params
  })
}
// 任务详情
const getAutumnInspectionTaskDetailsInfo = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/getAutumnInspectionTaskDetailsInfo',
    method: 'post',
    data: params
  })
}
// 执行工单 -- 提交/保存
const submitAutumTaskInfo = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/submitAutumTaskInfo',
    method: 'post',
    data: params
  })
}
// 执行工单 -- 删除单个图片接口
const deleteFileInfo = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/deleteFileInfo',
    method: 'post',
    data: params
  })
}

// 执行工单 -- 删除单个执行项接口
const deleteExecutionItem = (params) => {
  return apiRequest({
    url: '/txksh/kosinManage/rest/api/autumn/deleteExecutionItem',
    method: 'post',
    data: params
  })
}
export default {
  autumnSelectModelList,
  getAutumnInspectionTaskListInfo,
  getAutumnInspectionTaskDetailsInfo,
  submitAutumTaskInfo,
  deleteFileInfo,
  deleteExecutionItem
}